﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="newBlog.index" %>

<%@ Register Src="~/model/allLink.ascx" TagPrefix="uc1" TagName="allLink" %>

<%       if (Session["user_id"]==null) {
        Response.Redirect("/model/login.aspx");
        return;
    }
    %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=Application["title"] %></title>
    <meta name="description" content="<%=Application["content"] %>">
    <meta name="keywords" content="<%=Application["key"] %>">
    <uc1:allLink runat="server" ID="allLink" />
</head>
<body>

    <div class="layui-row layui-col-space10  widthMax heightMax margin0 ">
        <div class="layui-col-md2 heightMax sidebar">
            <div class="layui-bg-black heightMax sidebar">
                <ul class="layui-nav layui-nav-tree widthMax" lay-filter="test">
                    

                    <%  if (Convert.ToInt32(Session["user_grade"])==1)
                            {
                    %>
                    <li class="layui-nav-item ">
                        <a href="javascript:;"><i class="layui-icon layui-icon-app"></i>管理中心</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <li class="layui-nav-item ">
                                    <a href="javascript:;"><i class="layui-icon layui-icon-template-1"></i>文章管理</a>
                                    <dl class="layui-nav-child">
                                        <dd><a href="javascript:open_page('文章预览-管理中心','/admin/article/Article_priview.aspx','Admin_Article');">文章预览</a></dd>

                                        <dd><a href="javascript:open_page('文章预览-管理中心','/admin/article/Catalog_priview.aspx','Admin_Catalog');">分类管理</a></dd>

                                    </dl>
                                </li>
                                <!--文章管理中心-->
                            </dd>
                            <dd>
                                <li class="layui-nav-item ">
                                    <a href="javascript:;"><i class="layui-icon layui-icon-user"></i>用户管理</a>
                                    <dl class="layui-nav-child">
                                        <dd><a href="javascript:open_page('文章预览-管理中心','/admin/User/User_Priview.aspx','Admin_Catalog');">用户预览</a></dd>
                                    </dl>
                                </li>
                                <!--用户中心-->
                            </dd>
                            <dd>
                                <li class="layui-nav-item ">
                                    <a href="javascript:;"><i class="layui-icon layui-icon-list"></i>订单管理</a>
                                    <dl class="layui-nav-child">
                                        <dd><a href="javascript:open_page('消费订单-管理中心','/admin/order/ShopOrder.aspx','Admin_ShopOrder');">消费订单</a></dd>
                                        <dd><a href="javascript:open_page('充值订单-管理中心','/admin/order/RechargeOrder.aspx','Admin_RechargeOrder');">充值订单</a></dd>
                                        <dd><a href="javascript:open_page('卡密生成-管理中心','/admin/order/Carmichael_Generate.aspx','Admin_CarmichaelCreate');">卡密生成</a></dd>
                                    </dl>
                                </li>
                                <!--订单中心-->
                            </dd>
                            <dd>
                                <li class="layui-nav-item ">
                                    <a href="javascript:;"><i class="layui-icon layui-icon-dialogue"></i>评论管理</a>
                                    <dl class="layui-nav-child">
                                        <dd><a href="javascript:open_page('评论管理-管理中心','/admin/Comment/Comment_priview.aspx','Admin_CarmichaelCreate');">评论预览</a></dd>
                                    </dl>
                                </li>
                                <!--评论中心-->
                            </dd>
                            <dd>
                                <li class="layui-nav-item ">
                                    <a href="javascript:;"><i class="layui-icon layui-icon-set"></i>配置中心</a>
                                    <dl class="layui-nav-child">
                                        <dd><a href="javascript:open_page('站点配置-管理中心','/admin/admin_index.aspx','Admin_option');">站点配置</a></dd>
                                    </dl>
                                </li>
                                <!--评论中心-->
                            </dd>
                        </dl>
                    </li>
                    <!--管理中心-->
                    <%
                        }
                    %>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;"><i class="layui-icon layui-icon-user"></i>用户中心</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:open_page('我的信息','/User/User_index.aspx','User_msg');">我的信息</a></dd>
                            <dd><a href="javascript:open_page('安全中心','/User/User_index.aspx?action=safe','User_safe');">安全中心</a></dd>
                            <dd><a href="javascript:open_page('余额充值','/User/User_index.aspx?action=Recharge','User_Rec');">余额充值</a></dd>
                            <dd><a href="javascript:sign_out();">退出登录</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><i class="layui-icon layui-icon-list"></i>订单中心</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:open_page('消费订单','/order/ShopOrder.aspx','ShopOrder');" onclick="">消费订单</a></dd>
                            <dd><a href="javascript:open_page('充值订单','/order/RechargeOrder.aspx','RechargeOrder');">充值订单</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><i class="layui-icon layui-icon-template-1"></i>文章中心</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:open_page('我的文章','/article/MyArticle.aspx','MyArticle');">我的文章</a></dd>
                            <dd><a href="javascript:open_page('文章撰写','/article/ArticleWrite.aspx','ArticleWrite');">文章撰写</a></dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><i class="layui-icon layui-icon-dialogue"></i>评论中心</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:open_page('我的评论','/Comment/MyComment.aspx','MyComment');">我的评论</a></dd>

                        </dl>
                    </li>

                    
                </ul>
            </div>
            <!--侧边栏选项-->
        </div>
        <!--侧边栏-->
        <div class="layui-col-md10 heightMax">
            <div class="layui-bg-gray heightMax">
                <div class="layui-tab layui-tab-card tab-position heightMax" lay-allowclose="true" lay-filter="tab">
                    <ul class="layui-tab-title" style="z-index: 1">
                        <li lay-id="index" class="layui-this">首页</li>
                    </ul>
                    <div class="layui-tab-content Tab_absolute">
                        <div class="layui-tab-item layui-show heightMax">
                            <div class="layui-fluid heightMax">
                                <div class="layui-row layui-col-space10 heightMax">

                                    <iframe src="/model/welcome.aspx" class="tab-iframe heightMax" id="lay-id-index"></iframe>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--内容切换-->

    </div>
    <!--中部内容-->
</body>
</html>
